package com.jdb.loan.api;

import com.fasterxml.jackson.annotation.JsonCreator;

public enum LoanCategoryState {
    CATEGORY("只显示在分类列表"),
    HOME("只显示在主页列表"),
    CATEGORY_HOME("显示在主页和分类列表"),
    ;

    private String text;

    LoanCategoryState(String text) {
        this.text = text;
    }

    @JsonCreator
    public static LoanCategoryState forValue(String name) {
        return LoanCategoryState.valueOf(name);
    }
}
